<%-- 
    Document   : lectura
    Created on : 13/11/2009, 07:27:10 PM
    Author     : FreddyHIQ
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<link href="/general/css/admin_1.css" rel="stylesheet" type="text/css"/>
<script language="JavaScript" type="text/javascript" src="/tramite/javaScript/scripts.js"></script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<f:view>    
    <t:div>
        <h:form id="frmDocumentos" styleClass="fondoFormulariosyPanel">
            <h:panelGrid columns="1" styleClass="rayaForms" width="100%">
                <h:outputLabel  value="Documento" />
            </h:panelGrid>
            <a4j:outputPanel ajaxRendered="true">
                <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                            warnClass="warnClass" fatalClass="fatalClass" showDetail="true" errorStyle="color:red;"
                            warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
            </a4j:outputPanel>
            <br/>
            <h:commandButton action="#{documentosController.responder}" value="responder" rendered="#{!documentosController.lectura}" />
            <h:commandButton action="#{documentosController.reenviar}" value="reenviar" />
            <h:commandButton action="#{documentosController.archivar}" value="archivar" />
            <h:commandButton action="cancelar" value="regresar" />
            <h:panelGrid columns="1">
                <h:outputLabel  value="Asunto:  #{documentosController.documentoIncSelec.fkDocCodigo.asunto}" />
                <h:outputLabel  value="De:      #{documentosController.documentoIncSelec.fkOpeCodigo.fkTraCodigo.fkSolCodigo.nombreDelSolicitante}" />
                <h:outputLabel  value="Enviado: #{documentosController.fecha}"/>
            </h:panelGrid>
            <br/>
            <rich:editor id="editor" readonly="true" width="800" height="400" value="#{documentosController.contenido}"
                         theme="simple" >
                <f:param name="theme_advanced_toolbar_location" value="top"/>
                <f:param name="theme_advanced_toolbar_align" value="left"/>
            </rich:editor>           
        </h:form>
    </t:div>
</f:view>